<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<script type="text/javascript" src="/oa/Public/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<link rel="stylesheet" type="text/css" href="/oa/Public/css/form.css" />
</head>
<body>

<div class="list" >
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="album">
		<div class="image"><a href="javascript:;" onclick="view(<?php echo ($vo["id"]); ?>)"><img src="<?php echo ($vo["img"]); ?>" /></a></div>
		<div class="name"><a href="javascript:;" onclick="view(<?php echo ($vo["id"]); ?>)"><?php echo ($vo["name"]); ?></a></div>
	</div><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
</body>
<script type="text/javascript">
$('img').error(function() {
	$(this).attr("src", "/oa/Public/images/pic-error.png");
});
var url = "/oa/index.php/Album/";
function view(id){
	window.location = url+"picture?id="+id;
	
	//window.location = url+"picture?id="+id;
}
</script>
</html>